home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
music4c.sit
/
Music4C Folder
/
Sources Folder
/
Synthesis_Time.c
< prev
next >
Wrap
Text File
|
1990-06-08
|
1KB
|
57 lines
/*
* ⌐ Graeme Gerrard 1990
* Faculty of Music, University of Melbourne
* Parkville Victoria 3052 Australia.
*
* ARPANET: grae@murdu.ucs.unimelb.edu.au
* telephone: (613) 344 4127, Fax: (613) 344 5346
*/
#include "Synthesis_Time.h"
static void Refresh_Dialog(DialogPtr GetSelection);
#define TRUE 1
#define NIL 0
static void Refresh_Dialog(GetSelection)
DialogPtr GetSelection;
{
Rect tempRect;
short DType;
Handle DItem;
GetDItem(GetSelection,1, &DType, &DItem, &tempRect);
PenSize(3, 3);
InsetRect(&tempRect, -4, -4);
FrameRoundRect(&tempRect, 16, 16);
PenSize(1, 1);
}
/* ======================================================== */
void D_Synthesis_Time()
{
DialogPtr GetSelection;
Rect tempRect;
short itemHit;
GetSelection = GetNewDialog(7, NIL, (WindowPtr)-1);
tempRect.top = GetSelection->portRect.top;
tempRect.left = GetSelection->portRect.left;
tempRect.bottom = GetSelection->portRect.bottom;
tempRect.right = GetSelection->portRect.right;
tempRect.top = -GetSelection->portBits.bounds.top;
tempRect.left = ((screenBits.bounds.right - screenBits.bounds.left) - (tempRect.right - tempRect.left)) / 2;
MoveWindow(GetSelection, tempRect.left, tempRect.top, TRUE);
ShowWindow(GetSelection);
SelectWindow(GetSelection);
SetPort(GetSelection);
Refresh_Dialog(GetSelection);
ModalDialog(NIL, &itemHit);
DisposDialog(GetSelection);
}